camera [
eye 4 4 2
focus 0 2 0
up 0 1 0
angle 60
near-far 1 20
]

light [
position 8.5 5 8.5
color 1 1 1
function 0 0.5 0
]

light [
position 3 5 3
color  1 1 1
function 0 0.5 0
]

light [
position -3 5 -3
color 1 1 1
function 0 0.5 0
]

light [
position -3 5 3
color 1 1 1
function 0 0.5 0
]

light [
position 8 5 1
color 1 1 1
function 0 0.5 0
]

light [
position 6 5 6
color 1 1 1
function 0 0.5 0
]

mastersubgraph die-mark [
  trans [
    scale 0.1 0.05 0.1
    object sphere [
      specular 1 1 1
    ]
  ]
]

mastersubgraph d6-1face [
  trans [
    translate 0 0.5 0
    subgraph die-mark
  ]
]

mastersubgraph d6-2face [
  trans [
    translate 0.3 0.5 0.3
    subgraph die-mark
  ]
  trans [
    translate -0.3 0.5 -0.3
    subgraph die-mark
  ]
]

mastersubgraph d6-3face [
  trans [
    subgraph d6-2face
  ]
  trans [
    subgraph d6-1face
  ]
]

mastersubgraph d6-4face [
  trans [
    subgraph d6-2face
  ]
  trans [
    rotate 0 1 0 90
    subgraph d6-2face
  ]
]

mastersubgraph d6-5face [
  trans [
    subgraph d6-4face
  ]
  trans [
    subgraph d6-1face
  ]
]

mastersubgraph d6-6face [
  trans [
    subgraph d6-4face
  ]
  trans [
    translate 0.3 0.5 0
    subgraph die-mark
  ]
  trans [
    translate -0.3 0.5 0
    subgraph die-mark
  ]
]

mastersubgraph d6 [
  trans [
    translate 0 0 0
    scale 1 1 1
    object cube [
      diffuse 0.05 0.1 0.5
      specular 0.1 0.2 1
      reflect 0 0 1
    ]
  ]
  trans [
    translate 0 0 0
    subgraph d6-1face
  ]
  
  trans [
    rotate 1 0 0 180
    subgraph d6-6face
  ]
  trans [
    rotate 0 0 1 90
    subgraph d6-5face
  ]
  trans [
    rotate 1 0 0 90
    subgraph d6-4face
  ]
  trans [
    rotate 1 0 0 270
    subgraph d6-3face
  ]
  trans [
    rotate 0 0 1 270
    subgraph d6-2face
  ]
]

mastersubgraph container [
  trans [
    translate 0 -2 0
    scale 2 0.1 2
    object cube [
      specular 0.5 0.5 0.5
      diffuse 0 0 0
      transparent 0.999 0.999 0.999
      reflect 0.5 0.5 0.5
      alpha 0.25
    ]
  ]
  trans [
    translate 1 0 0
    scale 0.1 4 2
    object cube [
      specular 0.5 0.5 0.5
      diffuse 0 0 0
      transparent 0.999 0.999 0.999
      reflect 0.5 0.5 0.5
      alpha 0.25
    ]
  ]
  trans [
    translate -1 0 0
    scale 0.1 4 2
    object cube [      
      specular 0.5 0.5 0.5
      diffuse 0 0 0
      transparent 0.999 0.999 0.999
      reflect 0.5 0.5 0.5
      alpha 0.25
    ]
  ]
  trans [
    translate 0 0 1
    scale 2 4 0.1
    object cube [
      specular 0.5 0.5 0.5
      diffuse 0 0 0
      transparent 0.999 0.999 0.999
      reflect 0.5 0.5 0.5
      alpha 0.25
    ]
  ]
  trans [
    translate 0 0 -1
    scale 2 4 0.1
    object cube [
      specular 0.5 0.5 0.5
      diffuse 0 0 0
      transparent 0.999 0.999 0.999
      reflect 0.5 0.5 0.5
      alpha 0.25
    ]
  ]
]

mastersubgraph root [
  trans [
    translate -8 2 -0.5
    scale 1.8 1.8 1.8
    rotate 0 0 -1 110
    rotate 0 1 0 27
    subgraph container
  ]
  trans [
    translate -7.5 2.5 0
    rotate 0 1 1 59
    subgraph d6
  ]
  trans [
    translate -5.8 1.7 0.3
    rotate 1 0 1 94
    subgraph d6
  ]
  trans [
    translate -5.8 0.5 -0.4
    rotate 1 0 1 156
    subgraph d6
  ]
  trans [
    translate -6.8 1.0 -1.4
    rotate 1 0 1 274
    subgraph d6
  ]
  trans [
    translate -3.8 0.2 -0.4
    rotate 1 0 1 239
    subgraph d6
  ]
  trans [
    translate -3.3 -0.3 -1.8
    rotate 1 0 1 173
    subgraph d6
  ]
  trans [
    translate -1.3 -0.7 -2.4
    rotate 1 0 1 312
    subgraph d6
  ]
  trans [
    translate -1.6 -0.75 -0.8
    rotate 1 1 0 124
    subgraph d6
  ]


  trans [
    translate -3 -2.1 -1
    scale 10 1 10
    object cube [
      diffuse 0.1 0.1 0.1
      specular 0.1 0.1 0.1
      reflect 1 1 1
    ]
  ]
]